/*
 * XML Type:  ServiceChange
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ServiceChange
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML ServiceChange(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ServiceChangeImpl extends net.ofx.types.x2003.x04.impl.AbstractServiceActionImpl implements net.ofx.types.x2003.x04.ServiceChange
{
    
    public ServiceChangeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BANKACCTFROM$0 = 
        new javax.xml.namespace.QName("", "BANKACCTFROM");
    private static final javax.xml.namespace.QName CCACCTFROM$2 = 
        new javax.xml.namespace.QName("", "CCACCTFROM");
    private static final javax.xml.namespace.QName INVACCTFROM$4 = 
        new javax.xml.namespace.QName("", "INVACCTFROM");
    private static final javax.xml.namespace.QName PRESACCTFROM$6 = 
        new javax.xml.namespace.QName("", "PRESACCTFROM");
    private static final javax.xml.namespace.QName BANKACCTTO$8 = 
        new javax.xml.namespace.QName("", "BANKACCTTO");
    private static final javax.xml.namespace.QName CCACCTTO$10 = 
        new javax.xml.namespace.QName("", "CCACCTTO");
    private static final javax.xml.namespace.QName INVACCTTO$12 = 
        new javax.xml.namespace.QName("", "INVACCTTO");
    private static final javax.xml.namespace.QName PRESACCTTO$14 = 
        new javax.xml.namespace.QName("", "PRESACCTTO");
    
    
    /**
     * Gets the "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BANKACCTFROM" element
     */
    public boolean isSetBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BANKACCTFROM$0) != 0;
        }
    }
    
    /**
     * Sets the "BANKACCTFROM" element
     */
    public void setBANKACCTFROM(net.ofx.types.x2003.x04.BankAccount bankacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            }
            target.set(bankacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Unsets the "BANKACCTFROM" element
     */
    public void unsetBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BANKACCTFROM$0, 0);
        }
    }
    
    /**
     * Gets the "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount getCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CCACCTFROM" element
     */
    public boolean isSetCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CCACCTFROM$2) != 0;
        }
    }
    
    /**
     * Sets the "CCACCTFROM" element
     */
    public void setCCACCTFROM(net.ofx.types.x2003.x04.CreditCardAccount ccacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$2);
            }
            target.set(ccacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount addNewCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$2);
            return target;
        }
    }
    
    /**
     * Unsets the "CCACCTFROM" element
     */
    public void unsetCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CCACCTFROM$2, 0);
        }
    }
    
    /**
     * Gets the "INVACCTFROM" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccount getINVACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().find_element_user(INVACCTFROM$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INVACCTFROM" element
     */
    public boolean isSetINVACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INVACCTFROM$4) != 0;
        }
    }
    
    /**
     * Sets the "INVACCTFROM" element
     */
    public void setINVACCTFROM(net.ofx.types.x2003.x04.InvestmentAccount invacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().find_element_user(INVACCTFROM$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().add_element_user(INVACCTFROM$4);
            }
            target.set(invacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "INVACCTFROM" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccount addNewINVACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().add_element_user(INVACCTFROM$4);
            return target;
        }
    }
    
    /**
     * Unsets the "INVACCTFROM" element
     */
    public void unsetINVACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INVACCTFROM$4, 0);
        }
    }
    
    /**
     * Gets the "PRESACCTFROM" element
     */
    public net.ofx.types.x2003.x04.PresentmentAccount getPRESACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentAccount target = null;
            target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().find_element_user(PRESACCTFROM$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESACCTFROM" element
     */
    public boolean isSetPRESACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESACCTFROM$6) != 0;
        }
    }
    
    /**
     * Sets the "PRESACCTFROM" element
     */
    public void setPRESACCTFROM(net.ofx.types.x2003.x04.PresentmentAccount presacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentAccount target = null;
            target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().find_element_user(PRESACCTFROM$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().add_element_user(PRESACCTFROM$6);
            }
            target.set(presacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESACCTFROM" element
     */
    public net.ofx.types.x2003.x04.PresentmentAccount addNewPRESACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentAccount target = null;
            target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().add_element_user(PRESACCTFROM$6);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESACCTFROM" element
     */
    public void unsetPRESACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESACCTFROM$6, 0);
        }
    }
    
    /**
     * Gets the "BANKACCTTO" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTTO$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BANKACCTTO" element
     */
    public boolean isSetBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BANKACCTTO$8) != 0;
        }
    }
    
    /**
     * Sets the "BANKACCTTO" element
     */
    public void setBANKACCTTO(net.ofx.types.x2003.x04.BankAccount bankacctto)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTTO$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTTO$8);
            }
            target.set(bankacctto);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTTO" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTTO$8);
            return target;
        }
    }
    
    /**
     * Unsets the "BANKACCTTO" element
     */
    public void unsetBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BANKACCTTO$8, 0);
        }
    }
    
    /**
     * Gets the "CCACCTTO" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount getCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTTO$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CCACCTTO" element
     */
    public boolean isSetCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CCACCTTO$10) != 0;
        }
    }
    
    /**
     * Sets the "CCACCTTO" element
     */
    public void setCCACCTTO(net.ofx.types.x2003.x04.CreditCardAccount ccacctto)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTTO$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTTO$10);
            }
            target.set(ccacctto);
        }
    }
    
    /**
     * Appends and returns a new empty "CCACCTTO" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount addNewCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTTO$10);
            return target;
        }
    }
    
    /**
     * Unsets the "CCACCTTO" element
     */
    public void unsetCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CCACCTTO$10, 0);
        }
    }
    
    /**
     * Gets the "INVACCTTO" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccount getINVACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().find_element_user(INVACCTTO$12, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INVACCTTO" element
     */
    public boolean isSetINVACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INVACCTTO$12) != 0;
        }
    }
    
    /**
     * Sets the "INVACCTTO" element
     */
    public void setINVACCTTO(net.ofx.types.x2003.x04.InvestmentAccount invacctto)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().find_element_user(INVACCTTO$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().add_element_user(INVACCTTO$12);
            }
            target.set(invacctto);
        }
    }
    
    /**
     * Appends and returns a new empty "INVACCTTO" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccount addNewINVACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().add_element_user(INVACCTTO$12);
            return target;
        }
    }
    
    /**
     * Unsets the "INVACCTTO" element
     */
    public void unsetINVACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INVACCTTO$12, 0);
        }
    }
    
    /**
     * Gets the "PRESACCTTO" element
     */
    public net.ofx.types.x2003.x04.PresentmentAccount getPRESACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentAccount target = null;
            target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().find_element_user(PRESACCTTO$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESACCTTO" element
     */
    public boolean isSetPRESACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESACCTTO$14) != 0;
        }
    }
    
    /**
     * Sets the "PRESACCTTO" element
     */
    public void setPRESACCTTO(net.ofx.types.x2003.x04.PresentmentAccount presacctto)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentAccount target = null;
            target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().find_element_user(PRESACCTTO$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().add_element_user(PRESACCTTO$14);
            }
            target.set(presacctto);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESACCTTO" element
     */
    public net.ofx.types.x2003.x04.PresentmentAccount addNewPRESACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentAccount target = null;
            target = (net.ofx.types.x2003.x04.PresentmentAccount)get_store().add_element_user(PRESACCTTO$14);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESACCTTO" element
     */
    public void unsetPRESACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESACCTTO$14, 0);
        }
    }
}
